import request from '@/config/request'


// 获取验证码
export function captcha() {
    return request({
        url: '/auth/captcha',
        method: 'post'
    })
}

// 登录接口
export function login(data) {
    return request({
        url: '/auth/login',
        method: 'post',
        data: data
    })
}

// 注册接口
export function register(data) {
    return request({
        url: '/auth/register',
        method: 'post',
        data: data
    })
}

// 登录接口
export function a() {
    return request({
        url: '/user/a',
        method: 'get'
    })
}